package com.qiniu.githubdata.entity;

import java.sql.Timestamp;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@TableName("developer_follower")
@AllArgsConstructor
public class DeveloperFollower {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long developerId;
    private Long followerId;
    private Timestamp updateTime;
    public DeveloperFollower() {
    }
    public DeveloperFollower(Long developerId, Long followerId) {
        this.developerId = developerId;
        this.followerId = followerId;
        this.updateTime = new Timestamp(new Date().getTime());
    }

}